package com.guoxin.chapter1;

/**
 * 通过集成Thread类来创建线程
 *
 * @author guoxin
 * @date 2019/8/8
 */
public class CreateThread {

    private static class MyThread extends Thread {
        @Override
        public void run() {
            System.out.println("MyThread");
        }
    }

    public static void main(String[] args) {
        MyThread thread = new MyThread();
        thread.start();
    }
}
